/**********************************************************************
 *
 *  MODULE: GNUMBEREDEDIT.H
 *  AUTHOR: BRIAN M. WORKMAN
 *  START DATE: 4/4/2006 8:21:07 PM
 *
 **********************************************************************/

#ifndef __GNUMBEREDEDIT_H_
#define __GNUMBEREDEDIT_H_

#include <QtGui>

#include "gdoc.h"
#include "devlinenumber.h"

class GNumberedEdit : public QFrame
{
    Q_OBJECT

public slots:
    void changed();
    
public:
    GNumberedEdit(QWidget* parent = 0);
    GDoc* edit();
    QTextDocument* doc();
    void setViewLineNumbers(bool);
    bool viewLineNumbers() const;

private:
    GDoc *m_edit;
    DevLineNumber *m_lines;
    QWidget *m_parent;
    
signals:
    void textChanged();
};

#endif // __GNUMBEREDEDIT_H_
